package com.h820;

public class shenfenzheng {
    public static void main(String[] args) {
        String s = "370612188012030046";
        char[] m = s.toCharArray();
        String year,month,day,sex;
        year = s.substring(6,10);
        month = s.substring(10,12);
        day = s.substring(12,14);
        int c =(int) s.charAt(16)-48;

        s.charAt(0);
        if (c%2==0){
            sex = "nv";
        }else {
            sex = "nan";
        }
        System.out.println(year+"年"+month+" 月" +
                "日 " +
                "性别"+sex);
    }
}
